package com.demo.employees.util;

import com.demo.employees.dao.EmployeeDAO;
import com.demo.employees.dao.impl.EmployeeDAOImpl;
import com.demo.employees.service.EmployeeService;
import com.demo.employees.service.impl.EmployeeServiceImpl;

/**
 * 简单工厂模式，用于获取dao实现类和service实现类
 * @author: jie.deng
 * @time: 2017年4月6日 上午10:20:21
 */
public class SimpleFactory {

	public static EmployeeService getEmployeeService() {
		return new EmployeeServiceImpl();
	}

	public static EmployeeDAO getEmployeeDAO() {
		return new EmployeeDAOImpl();
	}

}
